Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update collection.js #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vevedh
Copy link

@vevedh vevedh commented Feb 6, 2024

Hello it's a solve if error with calling collection
Solve Error : TypeError: Cannot read properties of undefined (reading 'split')

Summary

(If you have not already please refer to the contributing guideline as described
here
)

  • Tell us about the problem your pull request is solving.
  • Are there any open issues that are related to this?
  • Is this PR dependent on PRs in other repos?

If so, please mention them to keep the conversations linked together.

Other Information

If there's anything else that's important and relevant to your pull
request, mention that information here. This could include
benchmarks, or other information.

Your PR will be reviewed by a core team member and they will work with you to get your changes merged in a timely manner. If merged your PR will automatically be added to the changelog in the next release.

If your changes involve documentation updates please mention that and link the appropriate PR in feathers-docs.

Thanks for contributing to Feathers! ❤️

Solve Error : TypeError: Cannot read properties of undefined (reading 'split')
@claustres
Copy link
Collaborator

Thanks for this. Is the bug related to a specific version of MongoDB ? Indeed we only use it with v4 now but plan to upgrade it to v5/v6.

Unfortunately the linter is not happy: collection.js:17:23: Do not access Object.prototype method 'hasOwnProperty' from target object. Maybe the code need to be updated like this if (infos.hasOwnProperty('ns')) instead of if (Object(infos).hasOwnProperty('ns')) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants